//
//  NSString+Category.h
//  ios-loan
//
//  Created by guoqingping on 2017/12/27.
//  Copyright © 2017年 hxhg. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface NSString (Category)
//以1开头的11位数字
- (BOOL)containElevenNumber;

- (BOOL)isPhoneNumber;
- (BOOL)validateContactNumber;

//数字字母结合
- (BOOL)hasNumberAndLetter;


//身份证号码校验
+ (BOOL)accurateVerifyIDCardNumber:(NSString *)value;

//数字字符校验
+ (BOOL)isNumberString:(NSString *)string;

// md5
+ (NSString *) md5:(NSString *) input ;
//判断是否为浮点形：
+ (BOOL)isPureFloat:(NSString *)string;

//判断是不是空串  只有空格和换行
+  (BOOL)isBlankString:(NSString *)aStr;

+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
+ (NSString*)convertToJSONData:(id)infoDict;

@end
